<?php

//数据清除控制器
class Clear extends Controller {
	
	function Clear()
	{
		parent::Controller();
	}
	
	//默认首页
	function index()
	{
		echo 'Access Denied';
	}
	
	function site()
	{
		$siteid = u(4);
		if(empty($siteid)) return false;
		$this->load->model("site_model", "sm");
		$this->sm->delete($siteid);
	}
	
	function option()
	{
		$opid = u(4);
		if(empty($opid)) return false;
		$this->load->model("options_model", "om");
		$this->om->del_option($opid);
	}
	
	function plugin()
	{
		$plid = u(4);
		if(empty($plid)) return false;
		$this->load->model("plugins_model");
		$this->plugins_model->del_plugin($plid);
	}
	
	//公共创建数据整理
	function fresh()
	{
		
	}
	
}

/* End of file */